import { createApp } from 'vue'
import App from './App1.vue'
// import myMixin from './mixin/myMixin'
import direactives from './direactive'


const myPlugin = {
  install(app) {
    // console.log('plugin', app, options)
    Object.keys(direactives).forEach(key => {
      app.directive(key, direactives[key])
    })
    app.component()
    // app.directive('focus', direactives['focus'])
  }
}

createApp(App).use(myPlugin, { a: 1 }).mount('#app')

